package com.yjn.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @description: MybatisPlusConfig
 * @author: Yujn
 * @create: 2020-08-05 13:24
 **/
@Configuration
public class MybatisPlusConfig {

    /**
     * MP 的分页插件
     * @param
     * @return
     * @author yujn
     * @date 2020/8/5 13:25
     */
    @Bean
    public PaginationInterceptor paginationInterceptor(){
        return new PaginationInterceptor();
    }
}
